package com.hspedu.reader;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/2/24
 * @time 20:11
 */
public class BufferedReader_ {
    public static void main(String[] args) throws IOException {
        BufferedReader bufferedReader = new BufferedReader(new FileReader("D:\\BaiduNetdiskDownload\\韩顺平2021基础学Java\\temp\\news5.txt"));

        String line;

        while ((line = bufferedReader.readLine()) != null ){
            System.out.println(line);
        }

        bufferedReader.close();
    }
}
